package com.example.model.dlo;

import com.example.model.User;

public class ApiResponse {
    private boolean success;
    private String message;
    private String redirectUrl;
    private User user;
    public ApiResponse() {}

    public ApiResponse(boolean success, String message) {
        this(success, message, null,null);
    }

    public ApiResponse(boolean success, String message, String redirectUrl, User user) {
        this.success = success;
        this.message = message;
        this.redirectUrl = redirectUrl;
        this.user = user;
    }

    // 必须包含 Getter
    public boolean isSuccess() { return success; }
    public String getMessage() { return message; }
    public String getRedirectUrl() { return redirectUrl; }
    public User getUser() { return user; }
}
